package com.kk.xhr.model.dto;

import com.kk.xhr.common.pojo.BinaryEnum;
import com.kk.xhr.common.pojo.SignStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 签到dto
 *
 * @author luokexiong
 * @version 1.0 2021/2/19
 * @since 1.0.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class SignDTO {
    /** 主键id */
    private Long id;
    /** 用户id */
    private Long userId;
    /** 上班打卡时间 */
    private LocalDateTime begin;
    /** 上班打卡状态 */
    private SignStatusEnum beginStatus;
    /** 下班打卡时间 */
    private LocalDateTime end;
    /** 下班打卡状态 */
    private SignStatusEnum endStatus;
    /** 时长 */
    private Float duration;
    /** 缺少时长 */
    private Integer lack;
    /** 打卡日期 */
    private LocalDateTime signDate;
    /** 状态 */
    private BinaryEnum status;
}
